package org.lanqiao.tjut.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.lanqiao.tjut.bean.UsersBean;
import org.lanqiao.tjut.myUtils.MyUtils;
import org.lanqiao.tjut.service.ServiceFactory;

public class UserInfoModifyServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		//准备用户进行修改的数据
		// 获取id主键值
		String strUid = request.getParameter("uid");
		UsersBean usersB = ServiceFactory.getUserInfoManagerServiceInstance().getUserInfoById(strUid);
		//将数据缓存到session对象中
		request.setAttribute("usersB", usersB);
		//跳转到修改页面
		request.getRequestDispatcher("logined/UserInfoManager/userInfoAdd.jsp").forward(request, response);
	}

	
	
}
